package com.itheima.常用API.基本类型包装类;

import java.util.Arrays;

public class 案例 {
    public static void main(String[] args) {
        String s = "22 23 231 21 11 13 14 32 34 45 54 53 67 63 64";
        String[] ss = s.split(" ");
        int[] as = new int[ss.length];
        for (int i = 0; i < ss.length; i++) {
            as[i] = Integer.parseInt(ss[i]);
        }
        Arrays.sort(as);
        System.out.println("处理前:    "+s);
        System.out.println(" - - - -  - - - - - - - - - - - -");
        System.out.println("处理后:    ");
        for (int i = 0; i < as.length; i++) {
            System.out.print(as[i] + " ");
        }
    }
}
